<template>
  <van-col span="8">
    <!-- <van-button block color="#4899D0" size="small" native-type="submit" @click="onSubmit2">审批</van-button> -->
    <van-button block color="#4899D0" size="small" native-type="submit" @click="onSubmit1">受 理</van-button>
    <!-- <van-button block color="#4899D0" size="small" native-type="submit" @click="onSubmit3">聊天</van-button> -->
    <!-- <van-button block color="#4899D0" size="small" native-type="submit" @click="onSubmit4">测试</van-button> -->
    <!-- <van-button block color="#4899D0" size="small" native-type="submit" @click="onSubmit5">AI测试</van-button> -->
  </van-col>
  <router-view></router-view>
</template>

<script lang="ts" setup name="">
  import { computed } from 'vue';
  import { useUserStore } from '@/store/modules/user';
  import { setLang } from '@/i18n';
  import { useI18n } from 'vue-i18n';
  import { ref } from 'vue';
  import { useRoute } from 'vue-router'
  const uRouter = useRouter();
  const uRouter2 = useRouter();


  const onSubmit2 = () => {
    uRouter.push({
      // push方法
      path: '/application', //这里是跳转页面的name
      query: { id: 5 },
    });
  };

  const onSubmit1 = () => {
    uRouter2.push({
      // push方法
      path: '/accepted'
    });
  };

  /**
   * 提交表单并跳转到已接受页面
   */
  const onSubmit3= () => {
    uRouter2.push({
      // push方法
      path: '/onlineCustomerService'
    });
  };

  const onSubmit4= () => {
    uRouter2.push({
      // push方法
      path: '/test'
    });
  };


  const onSubmit5= () => {
    uRouter2.push({
      // push方法
      path: '/aiTest'
    });
  };

  const { locale } = useI18n();
  const changeLang = (type) => {
    setLang(type);
  };
</script>

<style lang="scss">
</style>
